import Vue from "vue"
import Vuex from "vuex"

import mutations from "./mutations";
import actions from "./actions";
import getters from "./getters";
import modela from "./modle/modleA/A";

//安装插件
Vue.use(Vuex)


//创建对象
const store = new Vuex.Store({
  state:{
    counter:1000,
    students:[
      {id:110,name:'mt',age:24},
      {id:111,name:'fa',age:20},
      {id:112,name:'va',age:21},
      {id:113,name:'ny',age:22},
      {id:114,name:'sd',age:23},
    ],
    anime:{name:'onepiece',from:'jap'}

  },
  mutations,
  getters,


  actions,
  modules:{
    a: {}


  }
})



//导出store
export default store
